package cn.jiangjiesheng.bootstrap.gateway.commons.config;

import org.springframework.boot.autoconfigure.web.WebProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by dev@jiangjiesheng.cn on 2021/7/16  <br/>
 */
@Configuration
@EnableConfigurationProperties
@ConfigurationPropertiesScan(basePackages = {
        "cn.jiangjiesheng.bootstrap.commons.properties"
})
public class MainConfig2 {
    @Bean
    public WebProperties.Resources resources() {
        return new WebProperties.Resources();
    }
}
